# coding: utf-8

from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2
from sklearn.datasets import load_iris

# 导入IRIS数据集
iris = load_iris()
model1 = SelectKBest(chi2, k=3)
model1.fit_transform(iris.data, iris.target)

print(model1.scores_)
max_indexes = model1.scores_.argsort()[-1000:][::-1]
print(max_indexes)
